using MoonFramework.Scripts.View.Music;
using MoonFramework.Scripts.View.UI;
using MoonFramework.Template;
using MoonFramework.Test;
using UI.MenuUI;
using UnityEngine;

public class MenuManger : BaseGameMono<MenuManger>
{
	public AudioClip BgAudio;
	public AudioClip BgAudio2;

	private void Start()
	{
		UIManager.Instance.Show<UI_MainMenuWindow>();
		InvokeRepeating(nameof(PlayFireAudio), 0, BgAudio2.length);
		AudioManager.Instance.PlayBgAudio(BgAudio);	//框架本身没有支持同时播放多个背景音乐
	}

	private void PlayFireAudio()
	{
		AudioManager.Instance.PlayOnShot(BgAudio2, Vector3.zero, 1, false).Forget();
	}
}